home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1146 / 1146.xpi / chrome / screengrab.jar / content / ScrnShotsUpload.xul < prev    next >
Extensible Markup Language  |  2009-03-09  |  2KB  |  56 lines

  1. <?xml version="1.0"?>
  2. <!DOCTYPE window [
  3.     <!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
  4.     %globalDTD;
  5.     <!ENTITY % screengrabDTD SYSTEM "chrome://screengrab/locale/screengrab.dtd">
  6.     %screengrabDTD;
  7.     <!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  8.     %htmlDTD;
  9. ]>
  10.  
  11. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  12. <?xml-stylesheet href="style.css" type="text/css"?>
  13. <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  14.     xmlns:html="http://www.w3.org/1999/xhtml"
  15.     title="Upload to ScrnShots..."
  16.     id="ScrnShotsUpload"
  17.     onload="fillParams()">
  18.  
  19.     <script type="application/x-javascript">
  20.         function fillParams() {
  21.             var shotData = window.arguments[0].shotData
  22.             idGet("fileName").value = shotData.fileName;
  23.             idGet("description").value = shotData.description;
  24.             idGet("sourceUri").value = shotData.sourceUri;
  25.             idGet("tags").value = shotData.tags;
  26.         }
  27.         function doTidyUp() {
  28.             var shotData = window.arguments[0].shotData;
  29.             shotData.description = idGet("description").value;
  30.             shotData.fileName = idGet("fileName").value;
  31.             shotData.sourceUri = idGet("sourceUri").value;
  32.             shotData.tags = idGet("tags").value;
  33.             window.close();
  34.         }
  35.         function idGet(name) {
  36.             return document.getElementById(name);
  37.         }
  38.     </script>
  39.     <keyset>
  40.         <key keycode="VK_ESCAPE" oncommand="self.close();"/>
  41.     </keyset>
  42.  
  43.     <dialogheader id="logo" title="Screengrab! - ScrnShots upload" description="Upload to ScrnShots" orient="vertical" style="font-size: smaller;"/>
  44.     <vbox>
  45.         <label control="description" value="Description:"/>
  46.         <textbox id="description" value=""/>
  47.         <label control="tags" value="Tags:"/>
  48.         <textbox id="tags" value=""/>
  49.         <label control="fileName" value="File name:"/>
  50.         <textbox id="fileName" value=""/>
  51.         <label control="sourceUri" value="Source url:"/>
  52.         <textbox id="sourceUri" value=""/>
  53.         <button label="Send" oncommand="doTidyUp()" />
  54.     </vbox>
  55. </window>
  56.